package chapter10.practice17;

/**
 * Created by yangliwei on 2017/10/21.
 */
public class Main {
    public static void play(GameFactory factory){
        Game game = factory.getGame();
        game.play();
    }

    public static void main(String[] args) {
        play(Coins.gameFactory);
        play(Crap.gameFactory);
    }
}
